cURL
curl --request POST \ --url https://agent-prod.studio.lyzr.ai/v3/tools/credentials \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "name": "<string>", "provider_id": "<string>", "credentials": {}, "meta_data": {} }'
{ "message": "Credential created successfully." }
Creates a new credential for a tool.
/v3/tools/credentials
{ "name": "string", "provider_id": "string", "credentials": {}, "meta_data": {} }
curl -X POST "https://agent-prod.studio.lyzr.ai/v3/tools/credentials" ^ -H "accept: application/json" ^ -H "content-type: application/json" ^ -H "x-api-key: sk-default-EXAMPLEKEY123" ^ -d "{\"name\":\"string\",\"provider_id\":\"string\",\"credentials\":{},\"meta_data\":{}}"
Credential created successfully
The response is of type object.
object